<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=yes">
    <title>智能机器人产业平台 - 产品库</title>
    <style>
        :root {
            --primary: #00f7ff;
            --secondary: #4a4aff;
            --dark: #0a0a2e;
            --bg-gradient: linear-gradient(135deg, var(--primary), var(--secondary));
            --nav-height: 60px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Microsoft Yahei', sans-serif;
        }

        body {
            background: var(--dark);
            color: white;
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* 导航栏 */
        .nav-bar {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(10, 10, 46, 0.95);
            backdrop-filter: blur(10px);
            padding: 0 20px;
            height: var(--nav-height);
            z-index: 1000;
            transition: 0.3s;
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            height: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.8rem;
            background: var(--bg-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: bold;
        }

        .nav-menu {
            display: flex;
            gap: 2rem;
            transition: 0.3s;
        }

        .nav-menu a {
            color: white;
            text-decoration: none;
            padding: 0.8rem 1.2rem;
            border-radius: 8px;
            transition: 0.3s;
            white-space: nowrap;
        }

        .nav-menu a:hover {
            background: var(--bg-gradient);
            box-shadow: 0 0 15px var(--primary);
        }

        .menu-toggle {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
        }

        /* 主内容区 */
        .main-content {
            min-height: calc(100vh - var(--nav-height));
            padding: var(--nav-height) 20px 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            background: radial-gradient(circle at center,
                    rgba(0, 247, 255, 0.1) 0%,
                    rgba(10, 10, 46, 1) 70%);
        }

        /* 搜索框 */
        .search-box {
            width: min(90%, 700px);
            position: relative;
            margin: 2rem 0;
        }

        #searchInput {
            width: 100%;
            padding: 1.2rem 2rem;
            border: 2px solid var(--primary);
            border-radius: 50px;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            font-size: clamp(1rem, 2.5vw, 1.2rem);
            backdrop-filter: blur(5px);
            transition: 0.3s;
        }

        #searchInput:focus {
            outline: none;
            box-shadow: 0 0 30px var(--primary);
        }

        /* 分类列表 */
        .category-list {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            justify-content: center;
            margin-bottom: 2rem;
        }

        .category-item {
            background: var(--bg-gradient);
            padding: 0.5rem 1rem;
            border-radius: 20px;
            cursor: pointer;
            transition: 0.3s;
        }

        .category-item:hover {
            transform: scale(1.1);
        }

        /* 产品列表 */
        .product-list {
            max-width: 1200px;
            width: 100%;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
            gap: 2rem;
        }

        .product-card {
            background: rgba(255, 255, 255, 0.05);
            padding: 2rem;
            border-radius: 20px;
            border: 1px solid rgba(0, 247, 255, 0.2);
            transition: 0.3s;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .product-card::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg,
                    transparent,
                    var(--primary),
                    transparent);
            transform: rotate(45deg);
            transition: 0.5s;
            opacity: 0;
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0, 247, 255, 0.3);
        }

        .product-card:hover::before {
            opacity: 0.3;
            animation: borderFlow 3s linear infinite;
        }

        @keyframes borderFlow {
            0% {
                transform: rotate(45deg) translate(-30%, -30%);
            }

            100% {
                transform: rotate(45deg) translate(30%, 30%);
            }
        }

        /* 色块代替图片 */
        .product-color-block {
            width: 100%;
            height: 150px;
            background: var(--bg-gradient);
            margin-bottom: 1rem;
        }

        /* 分页 */
        .pagination {
            display: flex;
            gap: 1rem;
            justify-content: center;
            margin: 2rem 0;
        }

        .page-item {
            background: rgba(255, 255, 255, 0.1);
            padding: 0.5rem 1rem;
            border-radius: 5px;
            cursor: pointer;
            transition: 0.3s;
        }

        .page-item:hover {
            background: var(--bg-gradient);
        }

        /* 页脚 */
        .footer {
            background: rgba(0, 0, 0, 0.3);
            padding: 3rem 20px;
            text-align: center;
            font-size: 0.9rem;
        }

        /* 响应式设计 */
        @media (max-width: 992px) {
            .nav-menu {
                position: fixed;
                top: var(--nav-height);
                right: -100%;
                flex-direction: column;
                background: rgba(10, 10, 46, 0.95);
                width: min(300px, 80%);
                padding: 2rem;
                backdrop-filter: blur(10px);
                border-radius: 0 0 0 20px;
            }

            .nav-menu.active {
                right: 0;
            }

            .menu-toggle {
                display: block;
            }

            .product-card {
                padding: 1.5rem;
            }
        }

        @media (max-width: 768px) {
            :root {
                --nav-height: 50px;
            }

            .logo {
                font-size: 1.5rem;
            }

            .main-content {
                min-height: 80vh;
            }

            #searchInput {
                padding: 1rem 1.5rem;
            }

            .product-list {
                margin: 3rem auto;
                gap: 1.5rem;
            }
        }

        @media (max-width: 480px) {
            .nav-bar {
                padding: 0 15px;
            }

            .product-card h3 {
                font-size: 1.1rem;
            }

            .product-card p {
                font-size: 0.9rem;
            }

            .footer {
                padding: 2rem 15px;
            }
        }
    </style>
</head>

<body>
    <nav class="nav-bar">
        <div class="nav-container">
            <div class="logo">ROBOT INDUSTRY - 产品库</div>
            <button class="menu-toggle" onclick="toggleMenu()">☰</button>
            <div class="nav-menu">
                <a href="index.html">首页</a>
                <a href="news.html">行业资讯</a>
                <a href="suppliers.html">供应商</a>
                <a href="products.html" class="active">产品库</a>
                <a href="jobs.html">人才招聘</a>
            </div>
        </div>
    </nav>

    <section class="main-content">
        <div class="search-box">
            <input type="text" id="searchInput" placeholder="搜索产品...">
        </div>

        <div class="category-list">
            <div class="category-item">工业机器人</div>
            <div class="category-item">服务机器人</div>
            <div class="category-item">特种机器人</div>
            <div class="category-item">教育机器人</div>
        </div>

        <div class="product-list">
            <div class="product-card">
                <div class="product-color-block"></div>
                <h3>工业六轴机器人</h3>
                <p>高精度、高负载，适用于多种工业场景。</p>
            </div>
            <div class="product-card">
                <div class="product-color-block"></div>
                <h3>餐厅服务机器人</h3>
                <p>具备送餐、引导等功能，提升餐厅服务效率。</p>
            </div>
            <div class="product-card">
                <div class="product-color-block"></div>
                <h3>防爆巡检机器人</h3>
                <p>可在危险环境下进行巡检工作，保障安全。</p>
            </div>
            <div class="product-card">
                <div class="product-color-block"></div>
                <h3>编程教育机器人套件</h3>
                <p>适合儿童和青少年学习编程和机器人知识。</p>
            </div>
        </div>

        <div class="pagination">
            <div class="page-item">1</div>
            <div class="page-item">2</div>
            <div class="page-item">3</div>
            <div class="page-item">...</div>
            <div class="page-item">10</div>
        </div>
    </section>

    <footer class="footer">
        <p>© 2024 智能机器人产业平台 ｜ 客服热线：400-800-1234</p>
    </footer>

    <script>
        // 导航菜单切换
        function toggleMenu() {
            document.querySelector('.nav-menu').classList.toggle('active');
        }

        // 关闭菜单（点击外部区域）
        document.addEventListener('click', function (e) {
            const navMenu = document.querySelector('.nav-menu');
            const menuToggle = document.querySelector('.menu-toggle');

            if (!navMenu.contains(e.target) && !menuToggle.contains(e.target)) {
                navMenu.classList.remove('active');
            }
        });

        // 滚动导航栏效果
        window.addEventListener('scroll', () => {
            const navBar = document.querySelector('.nav-bar');
            if (window.scrollY > 50) {
                navBar.style.background = 'rgba(10, 10, 46, 0.98)';
                navBar.style.boxShadow = '0 5px 20px rgba(0, 247, 255, 0.3)';
            } else {
                navBar.style.background = 'rgba(10, 10, 46, 0.95)';
                navBar.style.boxShadow = 'none';
            }
        });

        // 搜索功能
        document.getElementById('searchInput').addEventListener('keypress', (e) => {
            if (e.key === 'Enter') {
                const keyword = e.target.value.trim();
                if (keyword) {
                    alert(`执行搜索：${keyword}`);
                    // 实际搜索逻辑
                }
            }
        });

        // 移动端触摸滑动关闭菜单
        let touchStartX = 0;
        document.addEventListener('touchstart', e => {
            touchStartX = e.changedTouches[0].screenX;
        });

        document.addEventListener('touchend', e => {
            const touchEndX = e.changedTouches[0].screenX;
            if (Math.abs(touchEndX - touchStartX) > 50) {
                document.querySelector('.nav-menu').classList.remove('active');
            }
        });
    </script>
</body>

</html>